/*
 * @Author: JohnYang
 * @Date: 2020-10-24 17:37:30
 * @LastEditors: JohnYang
 * @LastEditTime: 2020-11-07 15:03:50
 */

import Vue from 'vue'
import Component from 'vue-class-component'
import { Prop } from 'vue-property-decorator'

@Component({
  name: 'Span',
})
export default class Span extends Vue {
  @Prop({
    required: true,
  })
  value

  render(h) {
    var { style, ...rest } = this.$attrs
    return (
      <span
        {...{
          style: style,
        }}
      >
        {this.value}
      </span>
    )
  }
}
